package com.ruoyi.member.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.member.mapper.MessageReceiveMapper;
import com.ruoyi.member.domain.MessageReceive;
import com.ruoyi.member.service.IMessageReceiveService;

/**
 * 我的消息Service业务层处理
 * 
 * @author renyuxin
 * @date 2024-06-13
 */
@Service
public class MessageReceiveServiceImpl implements IMessageReceiveService 
{
    @Autowired
    private MessageReceiveMapper messageReceiveMapper;

    /**
     * 查询我的消息
     * 
     * @param messageMyId 我的消息主键
     * @return 我的消息
     */
    @Override
    public MessageReceive selectMessageReceiveByMessageMyId(Long messageMyId)
    {
        return messageReceiveMapper.selectMessageReceiveByMessageMyId(messageMyId);
    }

    /**
     * 查询我的消息列表
     * 
     * @param messageReceive 我的消息
     * @return 我的消息
     */
    @Override
    public List<MessageReceive> selectMessageReceiveList(MessageReceive messageReceive)
    {
        return messageReceiveMapper.selectMessageReceiveList(messageReceive);
    }

    /**
     * 新增我的消息
     * 
     * @param messageReceive 我的消息
     * @return 结果
     */
    @Override
    public int insertMessageReceive(MessageReceive messageReceive)
    {
        return messageReceiveMapper.insertMessageReceive(messageReceive);
    }

    /**
     * 修改我的消息
     * 
     * @param messageReceive 我的消息
     * @return 结果
     */
    @Override
    public int updateMessageReceive(MessageReceive messageReceive)
    {
        return messageReceiveMapper.updateMessageReceive(messageReceive);
    }

    /**
     * 批量删除我的消息
     * 
     * @param messageMyIds 需要删除的我的消息主键
     * @return 结果
     */
    @Override
    public int deleteMessageReceiveByMessageMyIds(Long[] messageMyIds)
    {
        return messageReceiveMapper.deleteMessageReceiveByMessageMyIds(messageMyIds);
    }

    /**
     * 删除我的消息信息
     * 
     * @param messageMyId 我的消息主键
     * @return 结果
     */
    @Override
    public int deleteMessageReceiveByMessageMyId(Long messageMyId)
    {
        return messageReceiveMapper.deleteMessageReceiveByMessageMyId(messageMyId);
    }
}
